//
//  MZAniShowView.h
//  MZAnimationDemo
//
//  Created by Chris Yang on 2016/11/24.
//  Copyright © 2016年 Chris Yang. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, MZAnimationOperationType) {
    
    MZAnimationOperationTypeUnknown = -1,
    
    MZAnimationOperationTypeRestore,
    MZAnimationOperationTypePerform,
    MZAnimationOperationTypePause,
    MZAnimationOperationTypeContinue,
    MZAnimationOperationTypeSetDuration,
};

@class MZAniShowView;

@protocol MZAniShowViewDelegate <NSObject>

- (void)showView:(MZAniShowView *)view buttonClickedWithOpType:(MZAnimationOperationType)opType;

@end

@interface MZAniShowView : UIView

@property (nonatomic, weak) id<MZAniShowViewDelegate>delegate;

@property (nonatomic, strong) UIImageView *imageView;

@property (nonatomic, strong) UIButton *restoreButton;
@property (nonatomic, strong) UIButton *performButton;

@property (nonatomic, strong) UIButton *aniPauseButton;
@property (nonatomic, strong) UIButton *aniContinueButton;

@property (nonatomic, strong) UIButton *aniDurationSettingButton;

- (void)restore;
- (void)updateDuration:(float)duration;

@end
